﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore.Metadata.Internal;

namespace fCloud.SensorApi.Models;

[Table("warningdatas")]
public class AlarmData
{
    [Key]
    [Column("id")]
    public int Id { get; set; }
    [Column("sensordata_id")]
    public int SensorDataId { get; set; }
    [Column("sensor_sn")]
    public string SensorSn { get; set; }
    [Column("device_code")]
    public string DeviceCode { get; set; }
    [Column("device_name")]
    public string DeviceName { get; set; }
    [Column("parameter_code")]
    public string ParameterCode { get; set; }
    [Column("value")]
    public double Value { get; set; }
    [Column("warn_time")]
    public DateTime WarnTime { get; set; }
    [Column("status")]
    public int Status { get; set; }
    [Column("user_id")]
    public int UserId { get; set; }
    [Column("remove_time")]
    public DateTime RemoveTime { get; set; }
    [Column("statu")]
    public string Statu { get; set; }
    [Column("flag")]
    public int Flag { get; set; }
    [Column("vis")]
    public double Vis { get; set; }
    [Column("vis40")]
    public double Vis40 { get; set; }
    [Column("temper")]
    public double Temper { get; set; }
    [Column("diel")]
    public double Diel { get; set; }
    [Column("ppm")]
    public double Ppm { get; set; }
    [Column("aw")]
    public double Aw { get; set; }
    [Column("mo")]
    public double Mo { get; set; }
    [Column("fe")]
    public double Fe { get; set; }
    [Column("nfe")]
    public double Nfe { get; set; }
    [Column("iso")]
    public double Iso { get; set; }
    [Column("dens")]
    public double Dens { get; set; }
}